package org.jmc.refmanager.web.wicket.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.wicket.model.AbstractReadOnlyModel;

public class SaChoicesModel extends AbstractReadOnlyModel<List<Boolean>>{
	private static final long serialVersionUID = 1L;
	
	private final static Map<Boolean, String> saaOrSaoValues = new HashMap<Boolean, String>();
	static {
		saaOrSaoValues.put(Boolean.TRUE, "Service Administratif");
		saaOrSaoValues.put(Boolean.FALSE, "Service Opérationnel");
	}

	public final static String get(Boolean key) {
		return saaOrSaoValues.get(key);
	}
	
	@Override
	public List<Boolean> getObject() {
		return new ArrayList<Boolean>(saaOrSaoValues.keySet());
	}
}
